import request from '@/utils/request'
// 用户课程列表的增删改查
export function getClassActivityList(data, pageNum, pageSize) {
  return request({

    url: 'api/admin/class_activity/getClassActivityList',
    method: 'POST',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}
export function deleteClassActivity(data) {
  return request({
    url: 'api/admin/class_activity/deleteClassActivity',
    method: 'POST',
    data
  })
}
export function addClassActivity(data) {
  return request({
    url: 'api/admin/class_activity/addClassActivity',
    method: 'POST',
    data
  })
}
export function getClassActivityInfo(data) {
  return request({
    url: 'api/admin/class_activity/getClassActivityInfo',
    method: 'POST',
    data
  })
}
export function updateClassActivity(data) {
  return request({
    url: 'api/admin/class_activity/updateClassActivity',
    method: 'POST',
    data
  })
}
export function bindTeacher(data) {
  return request({
    url: 'api/admin/teacher/bindTeacher',
    method: 'POST',
    data
  })
}
export function overBindTeacher(data) {
  return request({
    url: 'api/admin/teacher/overBindTeacher',
    method: 'POST',
    data
  })
}
export function addClassActivityTime(data) {
  return request({
    url: 'api/admin/class_activity/addClassActivityTime',
    method: 'POST',
    data
  })
}
export function updateClassActivityTime(data) {
  return request({
    url: 'api/admin/class_activity/updateClassActivityTime',
    method: 'POST',
    data
  })
}
//课程时间删除
export function delClassActivityTime(data) {
  return request({
    url: 'api/admin/class_activity/deleteClassActivityTime',
    method: 'POST',
    data
  })
}
//课程日期详情
export function classActivityTimeInfo(data) {
  return request({
    url: 'api/admin/class_activity/getClassActivityTime',
    method: 'POST',
    data
  })
}

